3.381 \(\int \frac{x^2}{\sqrt{d+e x^2} \left (a+b x^2+c x^4\right )} \, dx\)

Optimal. Leaf size=240 \[ \frac{\sqrt{\sqrt{b^2-4 a c}+b} \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}{\sqrt{\sqrt{b^2-4 a c}+b} \sqrt{d+e x^2}}\right )}{\sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}-\frac{\sqrt{b-\sqrt{b^2-4 a c}} \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{\sqrt{b^2-4 a c} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}} \]

[Out]

-((Sqrt[b - Sqrt[b^2 - 4*a*c]]*ArcTan[(Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e]*x
)/(Sqrt[b - Sqrt[b^2 - 4*a*c]]*Sqrt[d + e*x^2])])/(Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d
- (b - Sqrt[b^2 - 4*a*c])*e])) + (Sqrt[b + Sqrt[b^2 - 4*a*c]]*ArcTan[(Sqrt[2*c*d
 - (b + Sqrt[b^2 - 4*a*c])*e]*x)/(Sqrt[b + Sqrt[b^2 - 4*a*c]]*Sqrt[d + e*x^2])])
/(Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e])

_______________________________________________________________________________________

Rubi [A]  time = 0.907831, antiderivative size = 240, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103 \[ \frac{\sqrt{\sqrt{b^2-4 a c}+b} \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}{\sqrt{\sqrt{b^2-4 a c}+b} \sqrt{d+e x^2}}\right )}{\sqrt{b^2-4 a c} \sqrt{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}-\frac{\sqrt{b-\sqrt{b^2-4 a c}} \tan ^{-1}\left (\frac{x \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}}{\sqrt{b-\sqrt{b^2-4 a c}} \sqrt{d+e x^2}}\right )}{\sqrt{b^2-4 a c} \sqrt{2 c d-e \left (b-\sqrt{b^2-4 a c}\right )}} \]

Antiderivative was successfully verified.

[In]  Int[x^2/(Sqrt[d + e*x^2]*(a + b*x^2 + c*x^4)),x]

[Out]

-((Sqrt[b - Sqrt[b^2 - 4*a*c]]*ArcTan[(Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e]*x
)/(Sqrt[b - Sqrt[b^2 - 4*a*c]]*Sqrt[d + e*x^2])])/(Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d
- (b - Sqrt[b^2 - 4*a*c])*e])) + (Sqrt[b + Sqrt[b^2 - 4*a*c]]*ArcTan[(Sqrt[2*c*d
 - (b + Sqrt[b^2 - 4*a*c])*e]*x)/(Sqrt[b + Sqrt[b^2 - 4*a*c]]*Sqrt[d + e*x^2])])
/(Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 78.5665, size = 219, normalized size = 0.91 \[ - \frac{\sqrt{b - \sqrt{- 4 a c + b^{2}}} \operatorname{atanh}{\left (\frac{x \sqrt{b e - 2 c d - e \sqrt{- 4 a c + b^{2}}}}{\sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{d + e x^{2}}} \right )}}{\sqrt{- 4 a c + b^{2}} \sqrt{b e - 2 c d - e \sqrt{- 4 a c + b^{2}}}} + \frac{\sqrt{b + \sqrt{- 4 a c + b^{2}}} \operatorname{atanh}{\left (\frac{x \sqrt{b e - 2 c d + e \sqrt{- 4 a c + b^{2}}}}{\sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{d + e x^{2}}} \right )}}{\sqrt{- 4 a c + b^{2}} \sqrt{b e - 2 c d + e \sqrt{- 4 a c + b^{2}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**2/(c*x**4+b*x**2+a)/(e*x**2+d)**(1/2),x)

[Out]

-sqrt(b - sqrt(-4*a*c + b**2))*atanh(x*sqrt(b*e - 2*c*d - e*sqrt(-4*a*c + b**2))
/(sqrt(b - sqrt(-4*a*c + b**2))*sqrt(d + e*x**2)))/(sqrt(-4*a*c + b**2)*sqrt(b*e
 - 2*c*d - e*sqrt(-4*a*c + b**2))) + sqrt(b + sqrt(-4*a*c + b**2))*atanh(x*sqrt(
b*e - 2*c*d + e*sqrt(-4*a*c + b**2))/(sqrt(b + sqrt(-4*a*c + b**2))*sqrt(d + e*x
**2)))/(sqrt(-4*a*c + b**2)*sqrt(b*e - 2*c*d + e*sqrt(-4*a*c + b**2)))

_______________________________________________________________________________________

Mathematica [A]  time = 0.184479, size = 0, normalized size = 0. \[ \int \frac{x^2}{\sqrt{d+e x^2} \left (a+b x^2+c x^4\right )} \, dx \]

Verification is Not applicable to the result.

[In]  Integrate[x^2/(Sqrt[d + e*x^2]*(a + b*x^2 + c*x^4)),x]

[Out]

Integrate[x^2/(Sqrt[d + e*x^2]*(a + b*x^2 + c*x^4)), x]

_______________________________________________________________________________________

Maple [C]  time = 0.024, size = 161, normalized size = 0.7 \[ -{\frac{1}{2}\sqrt{e}\sum _{{\it \_R}={\it RootOf} \left ( c{{\it \_Z}}^{4}+ \left ( 4\,be-4\,cd \right ){{\it \_Z}}^{3}+ \left ( 16\,a{e}^{2}-8\,bde+6\,c{d}^{2} \right ){{\it \_Z}}^{2}+ \left ( 4\,b{d}^{2}e-4\,c{d}^{3} \right ){\it \_Z}+c{d}^{4} \right ) }{\frac{{{\it \_R}}^{2}-2\,{\it \_R}\,d+{d}^{2}}{{{\it \_R}}^{3}c+3\,{{\it \_R}}^{2}be-3\,{{\it \_R}}^{2}cd+8\,{\it \_R}\,a{e}^{2}-4\,{\it \_R}\,bde+3\,{\it \_R}\,c{d}^{2}+b{d}^{2}e-c{d}^{3}}\ln \left ( \left ( \sqrt{e{x}^{2}+d}-x\sqrt{e} \right ) ^{2}-{\it \_R} \right ) }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^2/(c*x^4+b*x^2+a)/(e*x^2+d)^(1/2),x)

[Out]

-1/2*e^(1/2)*sum((_R^2-2*_R*d+d^2)/(_R^3*c+3*_R^2*b*e-3*_R^2*c*d+8*_R*a*e^2-4*_R
*b*d*e+3*_R*c*d^2+b*d^2*e-c*d^3)*ln(((e*x^2+d)^(1/2)-x*e^(1/2))^2-_R),_R=RootOf(
c*_Z^4+(4*b*e-4*c*d)*_Z^3+(16*a*e^2-8*b*d*e+6*c*d^2)*_Z^2+(4*b*d^2*e-4*c*d^3)*_Z
+c*d^4))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{2}}{{\left (c x^{4} + b x^{2} + a\right )} \sqrt{e x^{2} + d}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^2/((c*x^4 + b*x^2 + a)*sqrt(e*x^2 + d)),x, algorithm="maxima")

[Out]

integrate(x^2/((c*x^4 + b*x^2 + a)*sqrt(e*x^2 + d)), x)

_______________________________________________________________________________________

Fricas [A]  time = 4.08212, size = 4583, normalized size = 19.1 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^2/((c*x^4 + b*x^2 + a)*sqrt(e*x^2 + d)),x, algorithm="fricas")

[Out]

1/4*sqrt(1/2)*sqrt(-(b*d - 2*a*e + ((b^2*c - 4*a*c^2)*d^2 - (b^3 - 4*a*b*c)*d*e
+ (a*b^2 - 4*a^2*c)*e^2)*sqrt(d^2/((b^2*c^2 - 4*a*c^3)*d^4 - 2*(b^3*c - 4*a*b*c^
2)*d^3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4))*x^2 - 2*a*d^2 + (b*d^2 -
4*a*d*e)*x^2 - 2*sqrt(1/2)*((b^2 - 4*a*c)*d^2*x + ((b^3*c - 4*a*b*c^2)*d^3 - (b^
4 - 2*a*b^2*c - 8*a^2*c^2)*d^2*e + 3*(a*b^3 - 4*a^2*b*c)*d*e^2 - 2*(a^2*b^2 - 4*
a^3*c)*e^3)*sqrt(d^2/((b^2*c^2 - 4*a*c^3)*d^4 - 2*(b^3*c - 4*a*b*c^2)*d^3*e + (b
^4 - 2*a*b^2*c - 8*a^2*c^2)*d^2*e^2 - 2*(a*b^3 - 4*a^2*b*c)*d*e^3 + (a^2*b^2 - 4
*a^3*c)*e^4))*x)*sqrt(e*x^2 + d)*sqrt(-(b*d - 2*a*e - ((b^2*c - 4*a*c^2)*d^2 - (
b^3 - 4*a*b*c)*d*e + (a*b^2 - 4*a^2*c)*e^2)*sqrt(d^2/((b^2*c^2 - 4*a*c^3)*d^4 -
2*(b^3*c - 4*a*b*c^2)*d^3*e + (b^4 - 2*a*b^2*c - 8*a^2*c^2)*d^2*e^2 - 2*(a*b^3 -
 4*a^2*b*c)*d*e^3 + (a^2*b^2 - 4*a^3*c)*e^4)))/((b^2*c - 4*a*c^2)*d^2 - (b^3 - 4
*a*b*c)*d*e + (a*b^2 - 4*a^2*c)*e^2)))/x^2)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{2}}{\sqrt{d + e x^{2}} \left (a + b x^{2} + c x^{4}\right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**2/(c*x**4+b*x**2+a)/(e*x**2+d)**(1/2),x)

[Out]

Integral(x**2/(sqrt(d + e*x**2)*(a + b*x**2 + c*x**4)), x)

_______________________________________________________________________________________

GIAC/XCAS [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x^2/((c*x^4 + b*x^2 + a)*sqrt(e*x^2 + d)),x, algorithm="giac")

[Out]

Timed out